package cn.skyclass.controls
{
	import mx.controls.TextInput;

	/**
	 * 可以切换成纯显示状态(不可编辑)的 TextInput
	 * @author fl
	 */
	[Bindable]		
	public class DisplayTextInput extends TextInput
	{
		public function DisplayTextInput()
		{
		}

		override public function get editable():Boolean{
			return super.editable;
		}
		override public function set editable(value:Boolean):void{
			super.editable = value;
			
			var style:String = value ? "solid" : "none";
			setStyle("borderStyle", style);
		}
	}
}